<?php



/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Game
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
 
 
class Game_Form_Admin_Distributor_Mochi_Import extends Game_Form_Admin_Distributor_Import
{
  public function init()
  {
          
    parent::init();

    
    $this->addElement('Select', 'category', array(
    	'label' => 'Category',
        'description' => 'You can limit the type of games in the feed by selecting category you want to import. Games may contain more than one category, so you may see the same game show up across different categories.',
    	'multiOptions' => array(
        "all" => "ALL",
				"action" => "Action",
				"adventure" => "Adventure",
				"board-game" => "Board Game",
				"casino" => "Casino",
				"driving" => "Driving",
				"dress-up" => "Dress Up",
				"fighting" => "Fighting",
				"puzzles" => "Puzzles",
				"customize" => "Pimp my / Customize",
				"shooting" => "Shooting",
				"sports" => "Sports",
				"other" => "Other",
				"strategy" => "Strategy",
				"education" => "Education",
				"rhythm" => "Rhythm",
				"jigsaw" => "Jigsaw / Slider Puzzles",
    	),
    	'value' => 'all'
    ));    
    
    $this->addElement('Select', 'content_rating', array(
    	'label' => 'Content Rating',
        'description' => 'You can restrict the game feed to only contains containing a particular content rating by choosing one of the following option below.',
    	'multiOptions' => array("all" => "ALL") + Game_Form_Helper::getContentRatings(),
    	'value' => 'all'
    ));
    
    
    $this->addElement('Hidden', 'secretkey', array(
       'value' => Engine_Api::_()->getApi('settings', 'core')->getSetting('game.mochisecretkey'), 
        'order' => 10001,
    ));    
    
    $this->addElement('Hidden', 'publisherid', array(
    	'label' => 'Mochi Publisher ID',
       'value' => Engine_Api::_()->getApi('settings', 'core')->getSetting('game.mochipublisherid'), 
       'order' => 10002,
    	'allowEmpty' => false,
    	'required' => true,
    )); 
    
    $this->addElement('Text', 'tag', array(
      'label' => 'Tag Filtering',
      'description' => "You may choose to include games that include or exclude a tag. To exclude a tag you must preface it with a minus sign (-). For example: Chinese games within the Mochi Feed System are tagged with 'zh-cn'. To omit Chinese games you would use the url parameter '-zh-cn'",
      //'value' => '-zh-cn'
        ));

    $this->addElement('Text', 'author', array(
      'label' => 'Author',
      'description' => 'You may choose to include only games by a single developer by providing the author name below.',
    ));


  }
}